import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
dayjs.extend(utc)

export function formatTime(utcTime: string, formmat = 'YYYY-MM-DD HH:mm:ss') {
  const formattedTime = dayjs.utc(utcTime).utcOffset(8).format(formmat)
  return formattedTime
}
